package com.yty.demo._4_oop;

/**
 * @author: yangtaoyao
 * @time: 2020/1/9 15:44
 * @description: 抽象类
 */
public abstract class AbstratTest {
    private int anInt=0;
    public abstract void method1();
    public void method2(){
        System.out.println("1");
    }
}
class subTest extends AbstratTest{
    @Override
    public void method1() {
        System.out.println("实现了抽象方法");
    }
}